package com.ruoyi.wm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wm.mapper.WmDoctorsMapper;
import com.ruoyi.wm.domain.WmDoctors;
import com.ruoyi.wm.service.IWmDoctorsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 医生信息Service业务层处理
 * 
 * @author hpf
 * @date 2021-12-03
 */
@Service
public class WmDoctorsServiceImpl implements IWmDoctorsService 
{
    @Autowired
    private WmDoctorsMapper wmDoctorsMapper;

    /**
     * 查询医生信息
     * 
     * @param id 医生信息ID
     * @return 医生信息
     */
    @Override
    public WmDoctors selectWmDoctorsById(Long id)
    {
        return wmDoctorsMapper.selectWmDoctorsById(id);
    }

    /**
     * 查询医生信息列表
     * 
     * @param wmDoctors 医生信息
     * @return 医生信息
     */
    @Override
    public List<WmDoctors> selectWmDoctorsList(WmDoctors wmDoctors)
    {
        return wmDoctorsMapper.selectWmDoctorsList(wmDoctors);
    }

    /**
     * 新增医生信息
     * 
     * @param wmDoctors 医生信息
     * @return 结果
     */
    @Override
    public int insertWmDoctors(WmDoctors wmDoctors)
    {
        return wmDoctorsMapper.insertWmDoctors(wmDoctors);
    }

    /**
     * 修改医生信息
     * 
     * @param wmDoctors 医生信息
     * @return 结果
     */
    @Override
    public int updateWmDoctors(WmDoctors wmDoctors)
    {
        return wmDoctorsMapper.updateWmDoctors(wmDoctors);
    }

    /**
     * 删除医生信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmDoctorsByIds(String ids)
    {
        return wmDoctorsMapper.deleteWmDoctorsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除医生信息信息
     * 
     * @param id 医生信息ID
     * @return 结果
     */
    @Override
    public int deleteWmDoctorsById(Long id)
    {
        return wmDoctorsMapper.deleteWmDoctorsById(id);
    }
}
